//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_vdsliderchanged.sqf"
#include "x_setup.sqf"

#include "x_uiinc.sqf"

private "_newvd";
disableSerialization;
#define __ctrl(numcontrol) (_XD_display displayCtrl numcontrol)
_XD_display = __uiGetVar(X_SETTINGS_DIALOG);
_newvd = round (_this select 1);
__ctrl(1999) ctrlSetText format [(localize "STR_DOM_MISSIONSTRING_358"), _newvd];
setViewDistance _newvd;